Integrand size = 21, antiderivative size = 518 \[ \int \frac {a+b \arcsin (c x)}{x \left (d+e x^2\right )} \, dx=-\frac {(a+b \arcsin (c x)) \log \left (1-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 d}-\frac {(a+b \arcsin (c x)) \log \left (1+\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 d}-\frac {(a+b \arcsin (c x)) \log \left (1-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 d}-\frac {(a+b \arcsin (c x)) \log \left (1+\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 d}+\frac {(a+b \arcsin (c x)) \log \left (1-e^{2 i \arcsin (c x)}\right )}{d}+\frac {i b \operatorname {PolyLog}\left (2,-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 d}+\frac {i b \operatorname {PolyLog}\left (2,\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 d}+\frac {i b \operatorname {PolyLog}\left (2,-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 d}+\frac {i b \operatorname {PolyLog}\left (2,\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 d}-\frac {i b \operatorname {PolyLog}\left (2,e^{2 i \arcsin (c x)}\right )}{2 d} \]
[Out]
Time = 0.63 (sec) , antiderivative size = 518, normalized size of antiderivative = 1.00, number of steps used = 25, number of rules used = 8, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.381, Rules used = {4817, 4721, 3798, 2221, 2317, 2438, 4825, 4617} \[ \int \frac {a+b \arcsin (c x)}{x \left (d+e x^2\right )} \, dx=-\frac {(a+b \arcsin (c x)) \log \left (1-\frac {\sqrt {e} e^{i \arcsin (c x)}}{-\sqrt {c^2 d+e}+i c \sqrt {-d}}\right )}{2 d}-\frac {(a+b \arcsin (c x)) \log \left (1+\frac {\sqrt {e} e^{i \arcsin (c x)}}{-\sqrt {c^2 d+e}+i c \sqrt {-d}}\right )}{2 d}-\frac {(a+b \arcsin (c x)) \log \left (1-\frac {\sqrt {e} e^{i \arcsin (c x)}}{\sqrt {c^2 d+e}+i c \sqrt {-d}}\right )}{2 d}-\frac {(a+b \arcsin (c x)) \log \left (1+\frac {\sqrt {e} e^{i \arcsin (c x)}}{\sqrt {c^2 d+e}+i c \sqrt {-d}}\right )}{2 d}+\frac {\log \left (1-e^{2 i \arcsin (c x)}\right ) (a+b \arcsin (c x))}{d}+\frac {i b \operatorname {PolyLog}\left (2,-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {d c^2+e}}\right )}{2 d}+\frac {i b \operatorname {PolyLog}\left (2,\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {d c^2+e}}\right )}{2 d}+\frac {i b \operatorname {PolyLog}\left (2,-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i \sqrt {-d} c+\sqrt {d c^2+e}}\right )}{2 d}+\frac {i b \operatorname {PolyLog}\left (2,\frac {\sqrt {e} e^{i \arcsin (c x)}}{i \sqrt {-d} c+\sqrt {d c^2+e}}\right )}{2 d}-\frac {i b \operatorname {PolyLog}\left (2,e^{2 i \arcsin (c x)}\right )}{2 d} \]
[In]
[Out]
Rule 2221
Rule 2317
Rule 2438
Rule 3798
Rule 4617
Rule 4721
Rule 4817
Rule 4825
Rubi steps \begin{align*} \text {integral}& = \int \left (\frac {a+b \arcsin (c x)}{d x}-\frac {e x (a+b \arcsin (c x))}{d \left (d+e x^2\right )}\right ) \, dx \\ & = \frac {\int \frac {a+b \arcsin (c x)}{x} \, dx}{d}-\frac {e \int \frac {x (a+b \arcsin (c x))}{d+e x^2} \, dx}{d} \\ & = \frac {\text {Subst}(\int (a+b x) \cot (x) \, dx,x,\arcsin (c x))}{d}-\frac {e \int \left (-\frac {a+b \arcsin (c x)}{2 \sqrt {e} \left (\sqrt {-d}-\sqrt {e} x\right )}+\frac {a+b \arcsin (c x)}{2 \sqrt {e} \left (\sqrt {-d}+\sqrt {e} x\right )}\right ) \, dx}{d} \\ & = -\frac {i (a+b \arcsin (c x))^2}{2 b d}-\frac {(2 i) \text {Subst}\left (\int \frac {e^{2 i x} (a+b x)}{1-e^{2 i x}} \, dx,x,\arcsin (c x)\right )}{d}+\frac {\sqrt {e} \int \frac {a+b \arcsin (c x)}{\sqrt {-d}-\sqrt {e} x} \, dx}{2 d}-\frac {\sqrt {e} \int \frac {a+b \arcsin (c x)}{\sqrt {-d}+\sqrt {e} x} \, dx}{2 d} \\ & = -\frac {i (a+b \arcsin (c x))^2}{2 b d}+\frac {(a+b \arcsin (c x)) \log \left (1-e^{2 i \arcsin (c x)}\right )}{d}-\frac {b \text {Subst}\left (\int \log \left (1-e^{2 i x}\right ) \, dx,x,\arcsin (c x)\right )}{d}+\frac {\sqrt {e} \text {Subst}\left (\int \frac {(a+b x) \cos (x)}{c \sqrt {-d}-\sqrt {e} \sin (x)} \, dx,x,\arcsin (c x)\right )}{2 d}-\frac {\sqrt {e} \text {Subst}\left (\int \frac {(a+b x) \cos (x)}{c \sqrt {-d}+\sqrt {e} \sin (x)} \, dx,x,\arcsin (c x)\right )}{2 d} \\ & = \frac {(a+b \arcsin (c x)) \log \left (1-e^{2 i \arcsin (c x)}\right )}{d}+\frac {(i b) \text {Subst}\left (\int \frac {\log (1-x)}{x} \, dx,x,e^{2 i \arcsin (c x)}\right )}{2 d}+\frac {\left (i \sqrt {e}\right ) \text {Subst}\left (\int \frac {e^{i x} (a+b x)}{i c \sqrt {-d}-\sqrt {c^2 d+e}-\sqrt {e} e^{i x}} \, dx,x,\arcsin (c x)\right )}{2 d}+\frac {\left (i \sqrt {e}\right ) \text {Subst}\left (\int \frac {e^{i x} (a+b x)}{i c \sqrt {-d}+\sqrt {c^2 d+e}-\sqrt {e} e^{i x}} \, dx,x,\arcsin (c x)\right )}{2 d}-\frac {\left (i \sqrt {e}\right ) \text {Subst}\left (\int \frac {e^{i x} (a+b x)}{i c \sqrt {-d}-\sqrt {c^2 d+e}+\sqrt {e} e^{i x}} \, dx,x,\arcsin (c x)\right )}{2 d}-\frac {\left (i \sqrt {e}\right ) \text {Subst}\left (\int \frac {e^{i x} (a+b x)}{i c \sqrt {-d}+\sqrt {c^2 d+e}+\sqrt {e} e^{i x}} \, dx,x,\arcsin (c x)\right )}{2 d} \\ & = -\frac {(a+b \arcsin (c x)) \log \left (1-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 d}-\frac {(a+b \arcsin (c x)) \log \left (1+\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 d}-\frac {(a+b \arcsin (c x)) \log \left (1-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 d}-\frac {(a+b \arcsin (c x)) \log \left (1+\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 d}+\frac {(a+b \arcsin (c x)) \log \left (1-e^{2 i \arcsin (c x)}\right )}{d}-\frac {i b \operatorname {PolyLog}\left (2,e^{2 i \arcsin (c x)}\right )}{2 d}+\frac {b \text {Subst}\left (\int \log \left (1-\frac {\sqrt {e} e^{i x}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right ) \, dx,x,\arcsin (c x)\right )}{2 d}+\frac {b \text {Subst}\left (\int \log \left (1+\frac {\sqrt {e} e^{i x}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right ) \, dx,x,\arcsin (c x)\right )}{2 d}+\frac {b \text {Subst}\left (\int \log \left (1-\frac {\sqrt {e} e^{i x}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right ) \, dx,x,\arcsin (c x)\right )}{2 d}+\frac {b \text {Subst}\left (\int \log \left (1+\frac {\sqrt {e} e^{i x}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right ) \, dx,x,\arcsin (c x)\right )}{2 d} \\ & = -\frac {(a+b \arcsin (c x)) \log \left (1-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 d}-\frac {(a+b \arcsin (c x)) \log \left (1+\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 d}-\frac {(a+b \arcsin (c x)) \log \left (1-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 d}-\frac {(a+b \arcsin (c x)) \log \left (1+\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 d}+\frac {(a+b \arcsin (c x)) \log \left (1-e^{2 i \arcsin (c x)}\right )}{d}-\frac {i b \operatorname {PolyLog}\left (2,e^{2 i \arcsin (c x)}\right )}{2 d}-\frac {(i b) \text {Subst}\left (\int \frac {\log \left (1-\frac {\sqrt {e} x}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{x} \, dx,x,e^{i \arcsin (c x)}\right )}{2 d}-\frac {(i b) \text {Subst}\left (\int \frac {\log \left (1+\frac {\sqrt {e} x}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{x} \, dx,x,e^{i \arcsin (c x)}\right )}{2 d}-\frac {(i b) \text {Subst}\left (\int \frac {\log \left (1-\frac {\sqrt {e} x}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{x} \, dx,x,e^{i \arcsin (c x)}\right )}{2 d}-\frac {(i b) \text {Subst}\left (\int \frac {\log \left (1+\frac {\sqrt {e} x}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{x} \, dx,x,e^{i \arcsin (c x)}\right )}{2 d} \\ & = -\frac {(a+b \arcsin (c x)) \log \left (1-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 d}-\frac {(a+b \arcsin (c x)) \log \left (1+\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 d}-\frac {(a+b \arcsin (c x)) \log \left (1-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 d}-\frac {(a+b \arcsin (c x)) \log \left (1+\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 d}+\frac {(a+b \arcsin (c x)) \log \left (1-e^{2 i \arcsin (c x)}\right )}{d}+\frac {i b \operatorname {PolyLog}\left (2,-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 d}+\frac {i b \operatorname {PolyLog}\left (2,\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}-\sqrt {c^2 d+e}}\right )}{2 d}+\frac {i b \operatorname {PolyLog}\left (2,-\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 d}+\frac {i b \operatorname {PolyLog}\left (2,\frac {\sqrt {e} e^{i \arcsin (c x)}}{i c \sqrt {-d}+\sqrt {c^2 d+e}}\right )}{2 d}-\frac {i b \operatorname {PolyLog}\left (2,e^{2 i \arcsin (c x)}\right )}{2 d} \\ \end{align*}
Time = 0.15 (sec) , antiderivative size = 430, normalized size of antiderivative = 0.83 \[ \int \frac {a+b \arcsin (c x)}{x \left (d+e x^2\right )} \, dx=-\frac {b \arcsin (c x) \log \left (1+\frac {\sqrt {e} e^{i \arcsin (c x)}}{c \sqrt {d}-\sqrt {c^2 d+e}}\right )+b \arcsin (c x) \log \left (1+\frac {\sqrt {e} e^{i \arcsin (c x)}}{-c \sqrt {d}+\sqrt {c^2 d+e}}\right )+b \arcsin (c x) \log \left (1-\frac {\sqrt {e} e^{i \arcsin (c x)}}{c \sqrt {d}+\sqrt {c^2 d+e}}\right )+b \arcsin (c x) \log \left (1+\frac {\sqrt {e} e^{i \arcsin (c x)}}{c \sqrt {d}+\sqrt {c^2 d+e}}\right )-2 b \arcsin (c x) \log \left (1-e^{2 i \arcsin (c x)}\right )-2 a \log (x)+a \log \left (d+e x^2\right )-i b \operatorname {PolyLog}\left (2,\frac {\sqrt {e} e^{i \arcsin (c x)}}{c \sqrt {d}-\sqrt {c^2 d+e}}\right )-i b \operatorname {PolyLog}\left (2,\frac {\sqrt {e} e^{i \arcsin (c x)}}{-c \sqrt {d}+\sqrt {c^2 d+e}}\right )-i b \operatorname {PolyLog}\left (2,-\frac {\sqrt {e} e^{i \arcsin (c x)}}{c \sqrt {d}+\sqrt {c^2 d+e}}\right )-i b \operatorname {PolyLog}\left (2,\frac {\sqrt {e} e^{i \arcsin (c x)}}{c \sqrt {d}+\sqrt {c^2 d+e}}\right )+i b \operatorname {PolyLog}\left (2,e^{2 i \arcsin (c x)}\right )}{2 d} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 1.66 (sec) , antiderivative size = 344, normalized size of antiderivative = 0.66
method | result | size |
parts | \(\frac {a \ln \left (x \right )}{d}-\frac {a \ln \left (e \,x^{2}+d \right )}{2 d}+b \left (\frac {i \operatorname {dilog}\left (i c x +\sqrt {-c^{2} x^{2}+1}\right )}{d}+\frac {i \left (\munderset {\textit {\_R1} =\operatorname {RootOf}\left (e \,\textit {\_Z}^{4}+\left (-4 c^{2} d -2 e \right ) \textit {\_Z}^{2}+e \right )}{\sum }\frac {\left (\textit {\_R1}^{2} e -4 c^{2} d -e \right ) \left (i \arcsin \left (c x \right ) \ln \left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )+\operatorname {dilog}\left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )\right )}{\textit {\_R1}^{2} e -2 c^{2} d -e}\right )}{4 d}+\frac {\arcsin \left (c x \right ) \ln \left (1+i c x +\sqrt {-c^{2} x^{2}+1}\right )}{d}-\frac {i \operatorname {dilog}\left (1+i c x +\sqrt {-c^{2} x^{2}+1}\right )}{d}+\frac {i e \left (\munderset {\textit {\_R1} =\operatorname {RootOf}\left (e \,\textit {\_Z}^{4}+\left (-4 c^{2} d -2 e \right ) \textit {\_Z}^{2}+e \right )}{\sum }\frac {\left (\textit {\_R1}^{2}-1\right ) \left (i \arcsin \left (c x \right ) \ln \left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )+\operatorname {dilog}\left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )\right )}{\textit {\_R1}^{2} e -2 c^{2} d -e}\right )}{4 d}\right )\) | \(344\) |
derivativedivides | \(\frac {a \ln \left (c x \right )}{d}-\frac {a \ln \left (c^{2} e \,x^{2}+c^{2} d \right )}{2 d}+\frac {i b \operatorname {dilog}\left (i c x +\sqrt {-c^{2} x^{2}+1}\right )}{d}+\frac {i b \left (\munderset {\textit {\_R1} =\operatorname {RootOf}\left (e \,\textit {\_Z}^{4}+\left (-4 c^{2} d -2 e \right ) \textit {\_Z}^{2}+e \right )}{\sum }\frac {\left (-\textit {\_R1}^{2} e +4 c^{2} d +e \right ) \left (i \arcsin \left (c x \right ) \ln \left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )+\operatorname {dilog}\left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )\right )}{-\textit {\_R1}^{2} e +2 c^{2} d +e}\right )}{4 d}+\frac {b \arcsin \left (c x \right ) \ln \left (1+i c x +\sqrt {-c^{2} x^{2}+1}\right )}{d}-\frac {i b \operatorname {dilog}\left (1+i c x +\sqrt {-c^{2} x^{2}+1}\right )}{d}-\frac {i b e \left (\munderset {\textit {\_R1} =\operatorname {RootOf}\left (e \,\textit {\_Z}^{4}+\left (-4 c^{2} d -2 e \right ) \textit {\_Z}^{2}+e \right )}{\sum }\frac {\left (\textit {\_R1}^{2}-1\right ) \left (i \arcsin \left (c x \right ) \ln \left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )+\operatorname {dilog}\left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )\right )}{-\textit {\_R1}^{2} e +2 c^{2} d +e}\right )}{4 d}\) | \(352\) |
default | \(\frac {a \ln \left (c x \right )}{d}-\frac {a \ln \left (c^{2} e \,x^{2}+c^{2} d \right )}{2 d}+\frac {i b \operatorname {dilog}\left (i c x +\sqrt {-c^{2} x^{2}+1}\right )}{d}+\frac {i b \left (\munderset {\textit {\_R1} =\operatorname {RootOf}\left (e \,\textit {\_Z}^{4}+\left (-4 c^{2} d -2 e \right ) \textit {\_Z}^{2}+e \right )}{\sum }\frac {\left (-\textit {\_R1}^{2} e +4 c^{2} d +e \right ) \left (i \arcsin \left (c x \right ) \ln \left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )+\operatorname {dilog}\left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )\right )}{-\textit {\_R1}^{2} e +2 c^{2} d +e}\right )}{4 d}+\frac {b \arcsin \left (c x \right ) \ln \left (1+i c x +\sqrt {-c^{2} x^{2}+1}\right )}{d}-\frac {i b \operatorname {dilog}\left (1+i c x +\sqrt {-c^{2} x^{2}+1}\right )}{d}-\frac {i b e \left (\munderset {\textit {\_R1} =\operatorname {RootOf}\left (e \,\textit {\_Z}^{4}+\left (-4 c^{2} d -2 e \right ) \textit {\_Z}^{2}+e \right )}{\sum }\frac {\left (\textit {\_R1}^{2}-1\right ) \left (i \arcsin \left (c x \right ) \ln \left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )+\operatorname {dilog}\left (\frac {\textit {\_R1} -i c x -\sqrt {-c^{2} x^{2}+1}}{\textit {\_R1}}\right )\right )}{-\textit {\_R1}^{2} e +2 c^{2} d +e}\right )}{4 d}\) | \(352\) |
[In]
[Out]
\[ \int \frac {a+b \arcsin (c x)}{x \left (d+e x^2\right )} \, dx=\int { \frac {b \arcsin \left (c x\right ) + a}{{\left (e x^{2} + d\right )} x} \,d x } \]
[In]
[Out]
\[ \int \frac {a+b \arcsin (c x)}{x \left (d+e x^2\right )} \, dx=\int \frac {a + b \operatorname {asin}{\left (c x \right )}}{x \left (d + e x^{2}\right )}\, dx \]
[In]
[Out]
\[ \int \frac {a+b \arcsin (c x)}{x \left (d+e x^2\right )} \, dx=\int { \frac {b \arcsin \left (c x\right ) + a}{{\left (e x^{2} + d\right )} x} \,d x } \]
[In]
[Out]
\[ \int \frac {a+b \arcsin (c x)}{x \left (d+e x^2\right )} \, dx=\int { \frac {b \arcsin \left (c x\right ) + a}{{\left (e x^{2} + d\right )} x} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {a+b \arcsin (c x)}{x \left (d+e x^2\right )} \, dx=\int \frac {a+b\,\mathrm {asin}\left (c\,x\right )}{x\,\left (e\,x^2+d\right )} \,d x \]
[In]
[Out]